iterator: MBMailItemIterator; { <--> mail item iterator to reset }
END;
{ MarkLetter Read/Unread and/or In Trash/Out of Trash. }
MBMarkLetterPBPtr = ^MBMarkLetterPB;
MBMarkLetterPB = RECORD
qLink: Ptr;
reservedH1: SInt32;
reservedH2: SInt32;
ioCompletion: MSAMIOCompletionUPP;
ioResult: OSErr;
saveA5: SInt32;
reqCode: SInt16;
containerRef: MBOpenContainerRef; { --> container in which letter resides }
seqNum: MailSeqNum; { --> mail sequence number of the letter }
readMark: MBLetterReadStatus; { --> must be kMBLetterRead, kMBLetterUnread or kMBLeaveReadMark }
trashMark: MBLetterTrashStatus; { --> must be kMBLetterNotInTrash, kMBLetterInTrash or kMBLeaveTrashMark }
END;
{ Stores the MailItem locally. }
MBCopyLocalPBPtr = ^MBCopyLocalPB;
MBCopyLocalPB = RECORD
qLink: Ptr;
reservedH1: SInt32;
reservedH2: SInt32;
ioCompletion: MSAMIOCompletionUPP;
ioResult: OSErr;
saveA5: SInt32;
reqCode: SInt16;
containerRef: MBOpenContainerRef; { --> container in which letter resides }
seqNum: MailSeqNum; { --> mail sequence number of the desired letter }
progressIndicator: MBProgressIndicator; { --> created using MBCreateProgressIndicatoror kOCENoProgressIndicator if client does not desire progress indication. }
copyOperationRef: MBCopyOperationRef; { <-- ref to this copy operation for use in cancel }
newSeqNum: MailSeqNum; { <-- seqNum of new letter after successful operation }
END;
MBCopyToFilePBPtr = ^MBCopyToFilePB;
MBCopyToFilePB = RECORD
qLink: Ptr;
reservedH1: SInt32;
reservedH2: SInt32;
ioCompletion: MSAMIOCompletionUPP;
ioResult: OSErr;
saveA5: SInt32;
reqCode: SInt16;
containerRef: MBOpenContainerRef; { --> container in which letter resides }
seqNum: MailSeqNum; { --> mail sequence number of the desired letter }
specPtr: FSSpecPtr; { --> spec of file which will contain the local copy }
progressIndicator: MBProgressIndicator; { --> created using MBCreateProgressIndicator or kOCENoProgressIndicator if client does not desire progress indication. }
copyOperationRef: MBCopyOperationRef; { <-- ref to this copy operation for use in cancel }
END;
{ Cancels the copy operation, if possible. }
MBCancelCopyPBPtr = ^MBCancelCopyPB;
MBCancelCopyPB = RECORD
qLink: Ptr;
reservedH1: SInt32;
reservedH2: SInt32;
ioCompletion: MSAMIOCompletionUPP;
ioResult: OSErr;
saveA5: SInt32;
reqCode: SInt16;
copyOperationRef: MBCopyOperationRef; { --> reference to copyLocal or copyToFile operation to cancel }
END;
{ An irrevocable delete of an item from a container. }
MBDeleteLetterPBPtr = ^MBDeleteLetterPB;
MBDeleteLetterPB = RECORD
qLink: Ptr;
reservedH1: SInt32;
reservedH2: SInt32;
ioCompletion: MSAMIOCompletionUPP;
ioResult: OSErr;
saveA5: SInt32;
reqCode: SInt16;
containerRef: MBOpenContainerRef; { --> container in which letter resides }
seqNum: MailSeqNum; { --> mail sequence number of the letter to delete }
END;
{ Forces a MailItem to be sent right now. This operation only works on MailItems in the outbox. }
MBSendNowPBPtr = ^MBSendNowPB;
MBSendNowPB = RECORD
qLink: Ptr;
reservedH1: SInt32;
reservedH2: SInt32;
ioCompletion: MSAMIOCompletionUPP;
ioResult: OSErr;
saveA5: SInt32;
reqCode: SInt16;
containerRef: MBOpenContainerRef; { --> ref of the outbox container in which letter resides }
seqNum: MailSeqNum; { --> mail sequence number of the letter to send }
timeOut: Duration; { --> time in seconds to wait for a response from server }